package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Category;
import com.woniu.supermarket.vo.CategoryVo;
import org.apache.catalina.LifecycleState;

import java.util.List;

public interface ICategoryService {
    PageInfo<CategoryVo> queryByPage(Integer now, Integer size, String cons);
    Category queryByID(Integer id);
    int add(Category category);
    int remove(Integer id);
    int modify(Category category);

    List<Category> findAll();

     int removeByParentId(Integer parentId);

    Category findParentCode();

    List<Category> findAllParentID();

    Category findCategoryByID(int i);

    Category findParentCodeByID(int id);
}
